// 用户登录携带参数ts类型
export interface loginFormType {
    username: string,
    password: string
}

//定义全部接口返回数据都拥有的ts类型
export interface resData {
    code: string,
    message: string
}
export enum Role {
    Admin = "0",
    User = "1"
}
export interface Data {
    avatar: string | null,
    gender: string | null,
    name: string | null,
    role: Role,
    signature: string | null,
    username: string
}
export interface loginResData extends resData {
    data: {
        avatar: string | null,
        gender: string | null,
        name: string | null,
        role: Role,
        signature: string | null,
        username: string
    }
}




